package com.java.grammer.arrays;

public class Array_Test2 {
    public static void main(String[] args) {
        //创建二维数组
        int[][] a = new int[][]{{1, 2, 4}, {3, 5, 6}, {3, 5, 1}};
        Arrays p1 = new Arrays();
        p1.sort(a);
    }
}

class Arrays {
    //数组排序
    public void sort(int[][] a) {
        for (int i = 0; i < a.length; i++) {
            for (int j = 0; j < a[i].length; j++) {
                System.out.print(a[i][j] + " ");
            }
        }
    }
}
